﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApp.Model
{
    public class AntdMenuItem
    {
        public AntdMenuItem(string _id, string _key, string _img)
        {
            id = _id;
            key = _key;
            keyword = _id.ToLower() + AntdUI.Pinyin.Pinyin.GetPinyin(_key).ToLower();
            keywordmini = AntdUI.Pinyin.Pinyin.GetInitials(_key).ToLower();
            imgs = (Image)AntdUI.SvgExtend.SvgToBmp(_img).Clone();
        }
        public string id { get; set; }
        public string keyword { get; set; }
        public string keywordmini { get; set; }
        public string key { get; set; }
        public Image imgs { get; set; }
    }
}
